import request from "@/util/request";

export default {
    // 1. 查询所有学生
    findAllRecords() {
        return request({
            url: "/record/list",
            method: "get"
        })
    },
    // 2. 分页查询
    findRecordsByPage(page,pageSize){
        return request({
            url:`/record/findRecordsByPage/${page}/${pageSize}`,
            method:"get"
        })
    },
    // 3. 条件查询
    search(page, pageSize, data) {
        return request({
            url: `/record/search/${page}/${pageSize}`,
            method: "post",
            data
        })
    },

}